home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
os2
/
pvm34b3.zip
/
pvm34b3
/
pvm3
/
libfpvm
/
WIN32
/
Pvmfmstat.c
< prev
next >
Wrap
C/C++ Source or Header
|
1997-07-22
|
765b
|
44 lines
/* $Id: Pvmfmstat.c,v 1.1 1997/06/27 16:27:45 pvmsrc Exp $ */
#ifdef WIN32
#include "..\..\include\pvm3.h"
#include "..\..\src\pvmwin.h"
#else
#include "pvm3.h"
#endif
#include "pvm_consts.h"
#ifdef __WATCOMC__
#include "watforstr.h"
void __fortran
PVMFMSTAT (host_str, mstat)
WatcomFortranStr* host_str;
int *mstat;
{
char* host_ptr = host_str->strP;
int host_len = host_str->len;
#else
void __stdcall
PVMFMSTAT (host_ptr,host_len, mstat)
char * host_ptr; int host_len;
int *mstat;
{
#endif
char thost[MAX_HOST_NAME + 1];
/*
* Copy the host name to make sure there's
* a NUL at the end.
*/
if (ftocstr(thost, sizeof(thost), host_ptr, host_len)) {
*mstat = PvmBadParam;
return;
}
*mstat = pvm_mstat(thost);
}